<?php
try
{
	// Initialize the platform
    require_once('inc/common.inc.php');

    switch ($app->getGuiMode())
    {
    	case 'plugin':
			$app->loadController(
    			$app->findPluginController(USE_SUPPLIED_CONTROLLER, USE_SUPPLIED_PLUGIN)
		    );
			break;
		default:
			$app->run();
	}

	AFramework::debug("query time: ".$qry_time);
    $app->view()->assign('debug_panel',$debug_panel);
    echo $app->view()->fetch($app->getPrimaryTemplate());

}
catch(Exception $e)
{
}
?>